package demo5;

import java.util.ArrayList;
import java.util.List;

// 商家基本信息
class Merchant {
    private int merchantId;
    private String name;
    private String registrationLocation;
    private String legalPerson;
    private String businessLicense;
    private String contact;

    public Merchant(int merchantId, String name, String registrationLocation, String legalPerson, String businessLicense, String contact) {
        this.merchantId = merchantId;
        this.name = name;
        this.registrationLocation = registrationLocation;
        this.legalPerson = legalPerson;
        this.businessLicense = businessLicense;
        this.contact = contact;
    }

    // 商家基本信息添加（可在构造函数完成，此方法可根据实际扩展）
    public void addMerchantInfo() {
        // 可添加具体逻辑
    }

    // 修改商家基本信息
    public void modifyMerchantInfo(String name, String registrationLocation, String legalPerson, String businessLicense, String contact) {
        this.name = name;
        this.registrationLocation = registrationLocation;
        this.legalPerson = legalPerson;
        this.businessLicense = businessLicense;
        this.contact = contact;
    }

    // 查询商家基本信息
    public String getMerchantInfo() {
        return "Merchant ID: " + merchantId + ", Name: " + name +
                ", Registration Location: " + registrationLocation + ", Legal Person: " + legalPerson +
                ", Business License: " + businessLicense + ", Contact: " + contact;
    }

    // Getters 和 Setters
    public int getMerchantId() {
        return merchantId;
    }

    public String getName() {
        return name;
    }

    public String getRegistrationLocation() {
        return registrationLocation;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public String getBusinessLicense() {
        return businessLicense;
    }

    public String getContact() {
        return contact;
    }
}
